package org.yudidi.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yudidi.autoconfig.condition.HelloService;

/**
 * Created by didi on 23/06/2018.
 */
@RestController
public class TestController {
    @Autowired
    private HelloService helloService;

    @RequestMapping("/")
    public String index(){
        return helloService.sayHello();
    }
}
